GOOS=linux GOARCH=amd64 go build -ldflags '-w -s' -o echo ./main.go ./utils.go ./http.go ./udp.go
# chmod +x ./echo
# upx -9 ./echo
tar -zcvf ebit_log_201411.tar.gz ./echo
ssh root@66.42.102.81 "cd /home;rm ebit_log_201411.tar.gz;pm2 stop 0"
scp -v ./ebit_log_201411.tar.gz root@66.42.102.81:/home/ 2>&1
ssh root@66.42.102.81 "cd /home;tar -zxvf ./ebit_log_201411.tar.gz;chmod +x ./echo;pm2 reload 0"
rm ebit_log_201411.tar.gz